import React, {Component} from 'react';

class RouterTest extends Component {
  constructor(props) {
    super(props);
    this.state = {
      text: '这是路由测试组件'
    };
    this.handleClick = this
      .handleClick
      .bind(this)

  }

  handleClick(event) {
    alert('点击事件')
  }

  render() {
    return (
      <div>
        <h1>{this.state.text}</h1>
      </div>
    )
  }
}

export default RouterTest